
import java.io.*;
class Base {
	int val = 1;
	public void f() {
		System.out.printf("45&20=%d\n", 45&20);
		System.out.println("Val=" + val);
	}
	public void testmove() {
		int b1 = 1;
		int b2 = 1;
		b1 <<= 31;
		b2 <<= 31;
		System.out.printf("b1=%d\n", b1);
		b1 >>=31;
		System.out.printf("b1=%d\n", b1);
		b1 >>=1;
		System.out.printf("b1=%d\n", b1);
		b2 >>>=31;
		System.out.printf("b2=%d\n", b2);
		b2 >>>= 1;
		System.out.printf("b2=%d\n", b2);
	}
	public void testnum() {
		int i, j;
		i = 6;
		j = i--;
		System.out.printf("i=%d, j=%d\n", i, j);
		double x = 1/3D;
        System.out.printf("x=%f\n", x);
	}
}

class Sub extends Base {
	int val = 2;
	public void basef() { super.f(); }
}

public class Test29 {
	public static void main(String []args) {
		Sub s = new Sub();
		s.basef();
		s.testmove();
		s.testnum();
	}
}
